package top.chenyaohua.asm;

public class AccessInfo {
    /**
     * 是否final修饰方法
     */
    private boolean accFinal;
    /**
     * 是否静态
     */
    private boolean accStatic;
    /**
     * 是否抽象方法
     */
    private boolean accAbstract;
    /**
     * 是否同步方法
     */
    private boolean accSynchronized;
    /**
     *
     * 封装权限
     */
    private int accEncapsulation;

    public boolean isAccFinal () {
        return accFinal;
    }

    protected void setAccFinal (boolean accFinal) {
        this.accFinal = accFinal;
    }

    public boolean isAccStatic () {
        return accStatic;
    }

    protected void setAccStatic (boolean accStatic) {
        this.accStatic = accStatic;
    }

    public boolean isAccAbstract () {
        return accAbstract;
    }

    protected void setAccAbstract (boolean accAbstract) {
        this.accAbstract = accAbstract;
    }

    public boolean isAccSynchronized () {
        return accSynchronized;
    }

    protected void setAccSynchronized (boolean accSynchronized) {
        this.accSynchronized = accSynchronized;
    }

    public int getAccEncapsulation () {
        return accEncapsulation;
    }

    protected void setAccEncapsulation (int accEncapsulation) {
        this.accEncapsulation = accEncapsulation;
    }

    @Override
    public String toString () {
        return "AccessInfo{" +
                "accFinal=" + accFinal +
                ", accStatic=" + accStatic +
                ", accAbstract=" + accAbstract +
                ", accSynchronized=" + accSynchronized +
                ", accEncapsulation=" + accEncapsulation +
                '}';
    }
}
